.class public Lcom/xingbook/park/activity/BaseFragmentActivity;
.super Landroid/support/v4/app/FragmentActivity;


# instance fields
.field a:Z

.field b:Z


# direct methods
.method public constructor <init>()V
    .locals 1

    const/4 v0, 0x1

    invoke-direct {p0}, Landroid/support/v4/app/FragmentActivity;-><init>()V

    iput-boolean v0, p0, Lcom/xingbook/park/activity/BaseFragmentActivity;->a:Z

    iput-boolean v0, p0, Lcom/xingbook/park/activity/BaseFragmentActivity;->b:Z

    return-void
.end method

.method private a(I)V
    .locals 3

    const v2, 0x7f040008

    const/4 v1, 0x0

    const/4 v0, 0x1

    if-ne p1, v0, :cond_0

    const v0, 0x7f040009

    invoke-virtual {p0, v2, v0}, Lcom/xingbook/park/activity/BaseFragmentActivity;->overridePendingTransition(II)V

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x2

    if-ne p1, v0, :cond_1

    const v0, 0x7f04000a

    invoke-virtual {p0, v2, v0}, Lcom/xingbook/park/activity/BaseFragmentActivity;->overridePendingTransition(II)V

    goto :goto_0

    :cond_1
    const/4 v0, 0x3

    if-ne p1, v0, :cond_2

    const v0, 0x7f040011

    const v1, 0x7f040012

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/BaseFragmentActivity;->overridePendingTransition(II)V

    goto :goto_0

    :cond_2
    const/4 v0, 0x4

    if-ne p1, v0, :cond_3

    const v0, 0x7f040015

    const v1, 0x7f040016

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/BaseFragmentActivity;->overridePendingTransition(II)V

    goto :goto_0

    :cond_3
    const/4 v0, 0x5

    if-ne p1, v0, :cond_4

    const v0, 0x7f040024

    const v1, 0x7f040025

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/BaseFragmentActivity;->overridePendingTransition(II)V

    goto :goto_0

    :cond_4
    const/4 v0, 0x6

    if-ne p1, v0, :cond_5

    const v0, 0x7f040026

    const v1, 0x7f040027

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/park/activity/BaseFragmentActivity;->overridePendingTransition(II)V

    goto :goto_0

    :cond_5
    invoke-virtual {p0, v1, v1}, Lcom/xingbook/park/activity/BaseFragmentActivity;->overridePendingTransition(II)V

    goto :goto_0
.end method


# virtual methods
.method public a(Landroid/content/Intent;I)V
    .locals 1

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/park/activity/BaseFragmentActivity;->a:Z

    invoke-virtual {p0, p1}, Lcom/xingbook/park/activity/BaseFragmentActivity;->startActivity(Landroid/content/Intent;)V

    invoke-direct {p0, p2}, Lcom/xingbook/park/activity/BaseFragmentActivity;->a(I)V

    return-void
.end method

.method public finish()V
    .locals 2

    const/4 v1, 0x0

    invoke-super {p0}, Landroid/support/v4/app/FragmentActivity;->finish()V

    iget-boolean v0, p0, Lcom/xingbook/park/activity/BaseFragmentActivity;->b:Z

    if-eqz v0, :cond_0

    invoke-virtual {p0, v1, v1}, Lcom/xingbook/park/activity/BaseFragmentActivity;->overridePendingTransition(II)V

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/park/activity/BaseFragmentActivity;->b:Z

    goto :goto_0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    invoke-super {p0, p1}, Landroid/support/v4/app/FragmentActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/BaseFragmentActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    new-instance v1, Landroid/content/res/Configuration;

    invoke-direct {v1}, Landroid/content/res/Configuration;-><init>()V

    invoke-virtual {v1}, Landroid/content/res/Configuration;->setToDefaults()V

    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/res/Resources;->updateConfiguration(Landroid/content/res/Configuration;Landroid/util/DisplayMetrics;)V

    return-void
.end method

.method public startActivity(Landroid/content/Intent;)V
    .locals 2

    const/4 v1, 0x0

    invoke-super {p0, p1}, Landroid/support/v4/app/FragmentActivity;->startActivity(Landroid/content/Intent;)V

    iget-boolean v0, p0, Lcom/xingbook/park/activity/BaseFragmentActivity;->a:Z

    if-eqz v0, :cond_0

    invoke-virtual {p0, v1, v1}, Lcom/xingbook/park/activity/BaseFragmentActivity;->overridePendingTransition(II)V

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/park/activity/BaseFragmentActivity;->a:Z

    goto :goto_0
.end method

.method public startActivityForResult(Landroid/content/Intent;I)V
    .locals 2

    const/4 v1, 0x0

    invoke-super {p0, p1, p2}, Landroid/support/v4/app/FragmentActivity;->startActivityForResult(Landroid/content/Intent;I)V

    iget-boolean v0, p0, Lcom/xingbook/park/activity/BaseFragmentActivity;->a:Z

    if-eqz v0, :cond_0

    invoke-virtual {p0, v1, v1}, Lcom/xingbook/park/activity/BaseFragmentActivity;->overridePendingTransition(II)V

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/park/activity/BaseFragmentActivity;->a:Z

    goto :goto_0
.end method
